package com.example.authority.entity;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.example.authority.entity.User ;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.example.authority.entity.Seek ;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

    import lombok.experimental.Accessors;


/**
 * @program:   
 * @ClassName:Collect
 * @description: 收藏表 实体类
 *       
 * @Version 3.0
 **/

@Data
    @Builder(toBuilder = true)
    @AllArgsConstructor
    @NoArgsConstructor
@TableName("sys_collect")
@Schema(title = "Collect对象", description = "收藏表")
    public class Collect implements Serializable{

    private static final long serialVersionUID = 1L;
        @Schema(title = "序列号")
                @TableId(value = "id", type = IdType.AUTO)
        @ExcelProperty("序列号")
private Long id;
        @Schema(title = "用户名")
    @TableField("uid")
@ExcelProperty("用户名")
private Long uid;
        @Schema(title = "种子名")
    @TableField("sid")
@ExcelProperty("种子名")
private Long sid;
        @TableField(exist = false)
        @ExcelIgnore
        private User user = new User ();
        @TableField(exist = false)
        @ExcelIgnore
        private Seek seek = new Seek ();
}
